/*
 * Copyright (c) 2011-2025 PiChen
 */

package com.interface21.context;

/**
 * Subinterface of MessageSource to be implemented by objects that
 * can resolve messages hierarchically.
 *
 * @author Rod Johnson
 * @version $RevisionId$
 */
public interface NestingMessageSource extends MessageSource {

    /**
     * Set the parent that will be used to try to resolve messages
     * that this object can't resolve.
     *
     * @param parent parent MessageSource that will be used to
     *               resolve messages that this object can't resolve.
     *               May be null, in which case no further resolution is possible.
     */
    void setParent(MessageSource parent);
}

